import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.pylab import *
import warnings
warnings.filterwarnings('ignore')

all_df=pd.read_csv('train_titanic.csv')

print(all_df.columns[pd.isnull(all_df).sum()>0])
#columns:列标签
print(all_df.columns)
#查看id列
print(all_df['PassengerId'].value_counts())
#删除id列
del all_df['PassengerId']